/*#include <stdio.h>
int main() {
	int n;
	int arr[20];
	for (int i = 0; i < 20; i++){
		arr[i] = 999;
	}
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%d", &arr[i]);
	}
	scanf("%d", &arr[n + 1]);
	for (int j = 0; j < 20; j++) {
		for (int i = 0; i < 19; i++) {
			if (arr[i] > arr[i + 1]) {
				int t;
				t = arr[i];
				arr[i] = arr[i + 1];
				arr[i + 1] = t;
			}
		}
	}
	for (int i = 0; i < n + 1; i++) {
		printf("%d ", arr[i]);
	}
	return 0;
}*/

#include <bits/stdc++.h>
int main() {
	using namespace std;
	int n, num, arr[99];
	cin >> n;
	for (int i = 98; i >= 99 - n; i--) {
		cin >> arr[i];
	}
	cin >> arr[0];
	for (int j = 0; j < 99; j++) {
		for (int i = 0; i < 98; i++) {
			if (arr[i] > arr[i + 1]) {
				int t;
				t = arr[i];
				arr[i] = arr[i + 1];
				arr[i + 1] = t;
			}
		}
	}
	for (int i = 98 - n; i < 99; i++) {
		cout << arr[i] << ' ';
	}
	return 0;
}